package com.sos.repository;

import com.sos.model.entity.SosRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SosRequestRepository extends JpaRepository<SosRequest, Long> {
    /**
     * 根据用户ID查找SOS请求
     */
    List<SosRequest> findByUserId(Long userId);
}